PWMMC
 
 
 Bean PWMMC
 
Pulse width modulation for motor control

User types are derived from basic types and they are designed for usage in driver interface. The following types are supported: pointer, array, structure, union and user declaration.

User types:

  • TChannels : user definition
    typedef struct {
      byte channel0  : 1;      /* Channel 0 bit */
      byte channel1  : 1;      /* Channel 1 bit */
      byte channel2  : 1;      /* Channel 2 bit */
      byte channel3  : 1;      /* Channel 3 bit */
      byte channel4  : 1;      /* channel 4 bit */
      byte channel5  : 1;      /* channel 5 bit */
    } TChannels;
    Structure contains bit informations for 6 channels, one bit for each channel.
  • TChannelPairs : user definition
    typedef struct {
      byte pair0 : 1;            /* PWM pair 0 */
      byte pair1 : 1;            /* PWM pair 1 */
      byte pair2 : 1;            /* PWM pair 2 */
    } TChannelPairs;
    3 channel pairs represented by bit in structure.



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.